package com.msb.strategy;

/**
 * @Auther： WangLei
 * @Date： 2021/9/9-09-09-23:17
 * @Description: com.msb.strategy
 * @version: 1.0
 */
public class Cat implements MyComparable<Cat>{
    int weight;

    public Cat(int weight){
        this.weight = weight;
    }

    @Override
    public boolean compareTo(Cat t2) {
        return this.weight >= t2.weight;
    }

    @Override
    public String toString() {
        return "Cat{" +
                "weight=" + weight +
                '}';
    }
}
